#ifndef __SPRITEFACTORY_H
#define __SPRITEFACTORY_H

#include "factory.h"

class SpriteFrameFactory : public AbstractFactory {
public:
  static SpriteFrameFactory* getInstance();
  ~SpriteFrameFactory();

  Frame* getFrame(const string & name);
private:
  static SpriteFrameFactory* instance;
  const Gamedata& gdata;
  std::map<string, Frame*> frames;
  SpriteFrameFactory();
  SpriteFrameFactory(const SpriteFrameFactory &);
  SpriteFrameFactory& operator=(const SpriteFrameFactory &);
};

#endif // !__SPRITEFACTORY_H
